<script language="javascript" type="text/javascript">
    $(document).ready(function() {
        // date picker
        $("#tanggal").datepicker({
            changeMonth: true,
            changeYear: true,
            dateFormat: 'yy-mm-dd'
        });
    });
</script>
<div class="breadcrumbs">
    <div class="container-fluid">
        <ul class="bread pull-left">
            <li><a href="{$config->site_url('kuliah/kelas')}">Perkuliahan</a></li>
            <li><a href="{$config->site_url('kuliah/kelas')}">Kelas</a></li>
            <li><a href="{$config->site_url('kuliah/kelas/manage')}/{$rs_info.tahun}/{$rs_info.semester}/{$rs_info.dosen_kd}/{$rs_info.makul_kd}">{$rs_info.makul_nm}</a></li>
            <li><a href="{$config->site_url('kuliah/kelas/detail')}/{$rs_info.kelas_kd}">{$rs_info.kelas_nm}</a></li>
            <li class="active"><a href="#">Tambah</a></li>
        </ul>
    </div>
</div>
<div class="row-fluid">
    <div class="span12">
        <div class="box">
            <div class="box-head">
                <h3>Tambah Pertemuan</h3>
            </div>
            <div class="box-content">
                <!-- notification template -->
                {include file="base/templates/notification.html"}
                <!-- end of notification template-->
                <form action="{$config->site_url('kuliah/kelas/detail_add_process')}" class="form-horizontal" method="post">
                    <input type="hidden" name="kelas_kd" value="{$rs_info.kelas_kd|default:''}" />
                    <div class="control-group">
                        <label class="control-label">Pertemuan</label>
                        <div class="controls">
                            <input type="text" class="span1" name="kelas_minggu" value="{$result.kelas_minggu|default:''}" maxlength="2" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Tanggal</label>
                        <div class="controls">
                            <input type="text" class="span2" name="kelas_tgl" value="{$result.kelas_tgl|default:''}" id="tanggal"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Materi</label>
                        <div class="controls">
                            <select name="silabus_detail_kd" class="span8">
                                <option value=""></option>
                                {foreach from=$rs_materi item=m}
                                <option value="{$m.silabus_detail_kd}">{$m.minggu} - {$m.kompetensi_dasar}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                    <div class="form-actions">
                        <button class="btn btn-primary" type="submit">SIMPAN</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>